import http from './http'

// 获取验证码接口
export const getCodeApi = (phone) => http.get(`/getCode/${phone}`)

// 登录接口
export const loginApi = (data) => http.post('/login/phone', data)

// 获取用户信息接口
export const getUserInfoApi = () => http.get('/profile')

// 修改用户信息接口
export const updateUserInfoApi = (formData) => http.put('/profile', formData)
